package com.dotndot;

import android.os.Parcel;
import android.os.Parcelable;


public class UserInfo implements Parcelable
{
    private String aesKey;
    private String userIndex;
    private String email;
    private String nickname;
    
    public UserInfo(){

    }
    
    public UserInfo(Parcel data){
        this.aesKey = data.readString();
        this.userIndex = data.readString();
        this.email = data.readString();
        this.nickname = data.readString();
    }        
    
    @Override
    public int describeContents()
    {
        return 0;
    }

    @Override
    public void writeToParcel( Parcel dest, int flags )
    {
        dest.writeString(aesKey);
        dest.writeString(userIndex);
        dest.writeString(email);
        dest.writeString(nickname);
    }
    
   
    public static final Parcelable.Creator<UserInfo> CREATOR = new Parcelable.Creator<UserInfo>(){
        public UserInfo createFromParcel(Parcel source) {
            return new UserInfo(source);
        }
        
        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };    
    
    public String getAesKey()
    {
        return aesKey;
    }

    public void setAesKey( String aesKey )
    {
        this.aesKey = aesKey;
    }

    public String getUserIndex()
    {
        return userIndex;
    }

    public void setUserIndex( String userIndex )
    {
        this.userIndex = userIndex;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail( String email )
    {
        this.email = email;
    }

    public String getNickname()
    {
        return nickname;
    }

    public void setNickname( String nickname )
    {
        this.nickname = nickname;
    }    
}
